package com.aabte.design.principle.openclose;


/**
 * @author Daniel
 */
public class Test {

    public static void main(String[] args) {

        ICourse javaCourse = new JavaCourse(1,"Java开发", 999.99);
        System.out.println("课程信息： "+javaCourse);

        // 扩展后
        JavaDiscountCourse javaDiscountCourse = new JavaDiscountCourse(1,"Java开发", 999.99);
        System.out.println("打折后的课程信息：" + javaDiscountCourse);

    }

}
